// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      2024-06-24
// @description  try to take over the world!
// @author       You
// @match        http://localhost:5173/*
// @match        http://localhost:5173/*
// @icon         
// @grant        none
// ==/UserScript==

!(function() {
  'use strict';

  const injectionFunction = () => {
    if (window.href.includes('localhost:5173')){
      window.injection = (user) => {
        const l = GM_GetValue("username")
        if (!(l && l.username)) {
          GM_setValue("username",user)
        }
      }
    }
  }

  const autoLogin = () => {

  }

  injectionFunction()
})();